Skip to content

Conversation

@SvenLie
Copy link

@SvenLie SvenLie commented Nov 8, 2025

When using the PlantUML-Renderer a notice is triggered by tempnam(). This is displayed within the rendered documentation.

When using the PlantUML-Renderer a notice is triggered by tempnam(). This is displayed within the rendered documentation.
@garvinhicking
Copy link
Contributor

I think we should address the notice and not suppress it generally. Can you mention the notice here so that we can try how to prevent a notice somehow?

@SvenLie
Copy link
Author

SvenLie commented Nov 8, 2025

with following guides.xml config:

  <extension
            class="\phpDocumentor\Guides\Graphs\DependencyInjection\GraphsExtension"
            renderer="plantuml"
            plantuml-binary="/usr/bin/plantuml"
    />

Above the plantuml then this is rendered:

Notice: tempnam(): file created in the system's temporary directory in /opt/guides/vendor/phpdocumentor/guides-graphs/src/Graphs/Renderer/PlantumlRenderer.php on line 48

@garvinhicking
Copy link
Contributor

So I actually think we should suppress that notice in the graphRenderer.php of phpdocumentor, wdyt?

I think generally we do want to see PHP notices to spot errors...?!

Maybe also we're missing a php.ini setting for sys_temp_dir in our container and then the notice would not even occur....

@garvinhicking
Copy link
Contributor

Would you like to try to adapt your patch and actually set this sys_temp_dir to /tmp/ and see if that changes things?

@SvenLie
Copy link
Author

SvenLie commented Nov 27, 2025

Unfortunately same notice with that added to php.ini:

sys_temp_dir = /tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants